import { _decorator, Component } from 'cc';
import { resLoader } from '../core/common/loader/ResLoader';

const { ccclass } = _decorator;

@ccclass('TestLoadImage')
export class TestLoadImage extends Component {
    async start() {
        console.time('Load Image');

        const image = await resLoader.loadAsync('bg');
        console.log('Image loaded:', image);

        console.timeEnd('Load Image');
    }
}